passthrough/vtd: disable 64-bit MMCFG quirk on 32-bit Xen
authorAllen Kay <allen.m.kay@intel.com>
Tue, 1 Feb 2011 19:10:56 +0000 (19:10 +0000)
committerAllen Kay <allen.m.kay@intel.com>
Tue, 1 Feb 2011 19:10:56 +0000 (19:10 +0000)
Attached patch disables pci_vtd_quirk for 32-bit Xen since 32-bit xen
does not support MMCFG access.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen/drivers/passthrough/vtd/quirks.c

index f4f60605767bfab2d0dbcb111df9a5eff348603d..ef6c8d0f2963f16d42a732b607a60929761bcf2b 100644 (file)
@@ -352,6 +352,7 @@ void me_wifi_quirk(struct domain *domain, u8 bus, u8 devfn, int map)
  */
 void pci_vtd_quirk(struct pci_dev *pdev)
 {
+#ifdef CONFIG_X86_64
     int bus = pdev->bus;
     int dev = PCI_SLOT(pdev->devfn);
     int func = PCI_FUNC(pdev->devfn);
@@ -363,4 +364,5 @@ void pci_vtd_quirk(struct pci_dev *pdev)
         val = pci_conf_read32(bus, dev, func, 0x1AC);
         pci_conf_write32(bus, dev, func, 0x1AC, val | (1 << 31));
     }
+#endif
 }